# Makefile for iphttpd
CXX=g++
CFLAGS=-Wl,-rpath,/usr/local/libevent-2.0.16-stable/lib/ -L/usr/local/libevent-2.0.16-stable/lib/ -I/usr/local/libevent-2.0.16-stable/include/ -levent -O2 -g

iphttpd: iphttpd.cc
	$(CXX) -o iphttpd iphttpd.cc http_server.cc parser.cc $(CFLAGS)
	@echo ""
	@echo "iphttpd build complete."
	@echo ""

clean: iphttpd
	rm -f iphttpd

install: iphttpd
	install $(INSTALL_FLAGS) -m 4755 -o root iphttpd $(DESTDIR)/usr/bin

